<template>
  <div class="good-info">
    <div class="good-desc">
      <div class="start"></div>
      <div class="desc">
        {{detailInfo.desc}}
      </div>
      <div class="end"></div>
    </div>

    <div v-for="(detail,index1) in detailInfo.detailImage" :key="index1">
      <div class="info-key">{{detail.key}}</div>
      <div class="info-list">
        <img :src="item" alt="" v-for="item,index in detail.list" :key="index" >
      </div>

    </div>
  </div>
</template>

<script>

  import {antiShake} from '../../../common/utils'

  export default {
    name: "DetailGoodsInfo",
    props: {
      detailInfo: {
        type: Object,
        default() {
          return {}
        }
      }
    },
  }
</script>

<style scoped>
  .good-info {
    padding: 20px 0px;
    border-bottom: 5px solid #f2f5f8;
  }

  .good-desc {
    padding: 15px 15px;
  }

  .good-desc .desc {
    padding: 10px 0;
    font-size: 14px;

  }

  .start, .end {
    position: relative;
    width: 50px;
    border-bottom: 2px solid #000000;
  }

  .good-desc .start {
    float: left;
  }

  .good-desc .end {
    float: right;
  }

  .good-desc .start::before,
  .good-desc .end::after {
    content: "";
    width: 5px;
    height: 5px;
    position: absolute;
    top: -1px;
    background-color: #000000;
  }

  .good-desc .end::after {
    right: 0;
  }

  .info-list img {
    width: 100%;
  }

  .info-key {
    margin: 10px 0 10px 10px;
    font-weight: 700;
  }

</style>
